package com.ruoyi.supplier.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品对象 tb_product
 * 
 * @author ruoyi
 * @date 2021-02-25
 */
public class TbProduct extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品表 */
    private Long id;

    /** 商品编号 */
    @Excel(name = "商品编号")
    private String productSn;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 产地 */
    private String origin;
    @Excel(name = "供应商名称")
    private String supplierName;
    private String supplierId;


    private Long typeId;

    /** 商品分类 */
    @Excel(name = "商品分类")
    private String typeName;

    /** 品牌表ID */
    @Excel(name = "品牌表ID")
    private Long brandId;

    /** 品牌表名称 */
    @Excel(name = "品牌表名称")
    private String brandName;

    /** 商品图片 */
    @Excel(name = "商品图片")
    private String picture;

    /** 计量单位 */
    @Excel(name = "计量单位")
    private Long measurement;

    /** 商品排序 */
    @Excel(name = "商品排序")
    private Long productSort;

    /** 保质期限 */
    @Excel(name = "保质期限")
    private Long shelfLife;

    /** 保质期限（年月日） */
    @Excel(name = "保质期限", readConverterExp = "年=月日")
    private Long shelfLifeType;


    private String productBarcode;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setProductSn(String productSn) 
    {
        this.productSn = productSn;
    }

    public String getProductSn() 
    {
        return productSn;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setOrigin(String origin) 
    {
        this.origin = origin;
    }

    public String getOrigin() 
    {
        return origin;
    }
    public void setTypeId(Long typeId) 
    {
        this.typeId = typeId;
    }

    public Long getTypeId() 
    {
        return typeId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public void setBrandId(Long brandId)
    {
        this.brandId = brandId;
    }

    public Long getBrandId() 
    {
        return brandId;
    }
    public void setBrandName(String brandName) 
    {
        this.brandName = brandName;
    }

    public String getBrandName() 
    {
        return brandName;
    }
    public void setPicture(String picture) 
    {
        this.picture = picture;
    }

    public String getPicture() 
    {
        return picture;
    }
    public void setMeasurement(Long measurement) 
    {
        this.measurement = measurement;
    }

    public Long getMeasurement() 
    {
        return measurement;
    }
    public void setProductSort(Long productSort) 
    {
        this.productSort = productSort;
    }

    public Long getProductSort() 
    {
        return productSort;
    }
    public void setShelfLife(Long shelfLife) 
    {
        this.shelfLife = shelfLife;
    }

    public Long getShelfLife() 
    {
        return shelfLife;
    }
    public void setShelfLifeType(Long shelfLifeType) 
    {
        this.shelfLifeType = shelfLifeType;
    }

    public Long getShelfLifeType() 
    {
        return shelfLifeType;
    }

    public String getSupplierName() {
        return supplierName;
    }

    public void setSupplierName(String supplierName) {
        this.supplierName = supplierName;
    }

    public String getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(String supplierId) {
        this.supplierId = supplierId;
    }

    public String getProductBarcode() {
        return productBarcode;
    }

    public void setProductBarcode(String productBarcode) {
        this.productBarcode = productBarcode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("productSn", getProductSn())
            .append("productName", getProductName())
            .append("origin", getOrigin())
            .append("typeId", getTypeId()).append("typeName", getTypeName())
            .append("brandId", getBrandId())
            .append("brandName", getBrandName())
            .append("picture", getPicture())
            .append("measurement", getMeasurement())
            .append("productSort", getProductSort())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("shelfLife", getShelfLife())
            .append("updateBy", getUpdateBy())
            .append("shelfLifeType", getShelfLifeType())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
